package com.melody.service;

import com.melody.entry.PlaylistMusic;
import com.baomidou.mybatisplus.extension.service.IService;
import io.swagger.models.auth.In;

import java.util.List;

/**
* @author zxz
* @description 针对表【playlist_music(歌单·歌曲表)】的数据库操作Service
* @createDate 2025-05-09 10:31:18
*/
public interface PlaylistMusicService extends IService<PlaylistMusic> {

    PlaylistMusic addMusicToPlaylist(PlaylistMusic playlistMusic);

    PlaylistMusic deleteMusicFromPlaylist(Long Id,Long listId);

    List<PlaylistMusic> batchDeleteMusicFromPlaylist(List<Long> Ids,Long listId);

    void batchDeleteMusicFromPlaylist2(Long listId);

    List<Integer> getMusicsListId(Integer listId, Integer limit);

    //批量添加音乐到歌单
    int batchAddMusicToPlaylist(List<Integer> Ids, Integer listId);

}
